<template>
	<view class="content">
		<view class="cost_info" v-for="(item,index) in list">
			<view   @click="navigator(item.id)">
				<text class="cost_time"> {{item.create_time}}</text>
				<view class="cost_con">
					<view class="cost_con_txt">
						{{item.content}}
					</view>
				</view>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
               page:1,
			   list:''
			};
		},
		onLoad(){
			this.getNoticeList()
		},
		methods:{
			getNoticeList(){
				var that=this;
				that.ajax({
					url:'api/Feedback/getFeebackList',
					data:{
						page:that.page,
						limit:10,
					},
					success:function(res){
						that.list=res.data
					}
				  })
			},
			navigator(id){
				uni.navigateTo({
					url:'../feedBack/feedBack?id='+id
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.content{
		background: #F7F9FB;
		min-height: 100vh;
	}
	.cost_info {
		padding: 10rpx;
		color: #333; 

		.cost_time {
			margin: 30rpx auto;
			display: block;
			width: 310rpx;
			height: 60rpx;
			line-height: 60rpx;
			font-size: 24rpx;
			color: #fff;
			text-align: center;
			background: #BFBFBF;
			opacity: 0.74;
			border-radius: 30rpx;
		}

		.cost_con {
			padding: 0 30rpx 30rpx 30rpx;
			height: 240rpx;
			background: url('https://nengyuan.chuangxiangdianli.com/static/wap/infoImg/tu_bg@2x.png') no-repeat;
			background-size: 100% 100%;

			.cost_con_in {
				font-size: 30rpx;
				height: 100rpx;
				line-height: 100rpx; 

				.cost_con_img {
					margin-right: 40rpx;
					width: 50rpx;
					height: 50rpx;
				}
			}

			.cost_con_txt {
				padding: 20rpx 20rpx;
				font-size: 30rpx;
				height: 140rpx;
				line-height: 44rpx;
				display: -webkit-box;
				text-overflow: ellipsis;
				overflow: hidden;
				-webkit-line-clamp: 3;
				-webkit-box-orient: vertical;
			}
		}
	}
</style>
